<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/msx/msx.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('msx_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">msx.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="msx_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef _MSX_H</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define _MSX_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="version_8h.html">gbdk/version.h</a>&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="msx_2hardware_8h.html">msx/hardware.h</a>&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="msx_8h.html#a82e656e3225a9c28fa2227a75bc5b4cb">   12</a></span>&#160;<span class="preprocessor">#define MSX</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// Here NINTENDO means Game Boy &amp; related clones</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifdef NINTENDO</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#undef NINTENDO</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#ifdef NINTENDO_NES</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#undef NINTENDO_NES</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifdef SEGA</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#undef SEGA</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#if defined(__TARGET_msxdos)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#define MSXDOS</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="msx_8h.html#a99bca2df4c6fde16a659797b4e584036">   33</a></span>&#160;<span class="preprocessor">#define SYSTEM_60HZ     0x00</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="msx_8h.html#ad6329c19927cf02579e2503e40c0bbde">   34</a></span>&#160;<span class="preprocessor">#define SYSTEM_50HZ     0x01</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="msx_8h.html#a6bc34abf062d8e3be88170ac106f197f">   36</a></span>&#160;<span class="preprocessor">#define VBK_REG VDP_ATTR_SHIFT</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="msx_8h.html#a05ca817ab32f6da612c3ae26db5abf02">   51</a></span>&#160;<span class="preprocessor">#define J_UP         0b00100000</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="msx_8h.html#ae032c5c544196e37ec0432f6cfad7904">   52</a></span>&#160;<span class="preprocessor">#define J_DOWN       0b01000000</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="msx_8h.html#ac70894fecac30c1ca9917f07373cf81c">   53</a></span>&#160;<span class="preprocessor">#define J_LEFT       0b00010000</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="msx_8h.html#a3bad91d11ae09ffcbb3cb0a81873d325">   54</a></span>&#160;<span class="preprocessor">#define J_RIGHT      0b10000000</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="msx_8h.html#a31af766e3b598eb7a6b63f55a4988e7a">   55</a></span>&#160;<span class="preprocessor">#define J_A          0b00000001</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="msx_8h.html#ae47e59a309120f9420993f26816b5e6d">   56</a></span>&#160;<span class="preprocessor">#define J_B          0b00000100</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="msx_8h.html#ab416a9d96d1582490828f4bac78a8b5b">   57</a></span>&#160;<span class="preprocessor">#define J_SELECT     0b00001000</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="msx_8h.html#ab769c6e20778298be8bc3321476ceb53">   58</a></span>&#160;<span class="preprocessor">#define J_START      0b00000010</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="msx_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">   64</a></span>&#160;<span class="preprocessor">#define M_TEXT_OUT   0x02U</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="msx_8h.html#a908826e7180f94a5988ceb8633313a2e">   65</a></span>&#160;<span class="preprocessor">#define M_TEXT_INOUT 0x03U</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="msx_8h.html#a04382de20738146fe873ddfb0585052b">   71</a></span>&#160;<span class="preprocessor">#define M_NO_SCROLL  0x04U</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="msx_8h.html#aca2855edd2d28f66be551a0f7ec23f07">   75</a></span>&#160;<span class="preprocessor">#define M_NO_INTERP  0x08U</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="msx_8h.html#a33caf10f6d1a7cbb6bd07b899c1a545f">   79</a></span>&#160;<span class="preprocessor">#define S_BANK       0x01U</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="msx_8h.html#ae97793b4039609f93b0f7f8bddb18011">   82</a></span>&#160;<span class="preprocessor">#define S_FLIPX      0x02U</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="msx_8h.html#a4bbb9cd6c38b2317de5256d1d889c63b">   85</a></span>&#160;<span class="preprocessor">#define S_FLIPY      0x04U</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="msx_8h.html#a54572cf6791463b6d60623837e0bb5a6">   88</a></span>&#160;<span class="preprocessor">#define S_PALETTE    0x08U</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="msx_8h.html#a9506d04c2ec7d2442a52054f67d2b32f">   91</a></span>&#160;<span class="preprocessor">#define S_PRIORITY   0x10U</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="msx_8h.html#a826169925ff12d52f0a0d51f14d2936b">   95</a></span>&#160;<span class="preprocessor">#define S_PAL(n)     (((n) &amp; 0x01U) &lt;&lt; 3)</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">// VDP helper macros</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="msx_8h.html#a63369a199a979eb3dbba71449659148d">   98</a></span>&#160;<span class="preprocessor">#define __WRITE_VDP_REG_UNSAFE(REG, v) shadow_##REG=(v),VDP_CMD=(shadow_##REG),VDP_CMD=REG</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="msx_8h.html#aa34282113397af810be737df1acec36c">   99</a></span>&#160;<span class="preprocessor">#define __WRITE_VDP_REG(REG, v) shadow_##REG=(v);__asm__(&quot;di&quot;</span>);VDP_CMD=(shadow_##REG);VDP_CMD=REG;__asm__(&quot;ei&quot;)</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="msx_8h.html#a964e713cb2535d7464d0d6ca7677049a">  100</a></span>&#160;<span class="preprocessor">#define __READ_VDP_REG(REG) shadow_##REG</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">  102</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a498b148efd22ab8ad9b844b2dc5e5bb8">WRITE_VDP_CMD</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> cmd) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="msx_8h.html#aa2ddf9662320c4a9d00fd4a94d347570">  103</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aa2ddf9662320c4a9d00fd4a94d347570">WRITE_VDP_DATA</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> data) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="msx_8h.html#a3ea524204d839377cf39842eec23e202">  111</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a3ea524204d839377cf39842eec23e202">mode</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> m) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="msx_8h.html#a6f49bc517509dbff3b7f8fae4373b1f0">  117</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a6f49bc517509dbff3b7f8fae4373b1f0">get_mode</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="msx_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5">  122</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5">get_system</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="msx_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">/* Interrupt flags */</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="msx_8h.html#aa027abe630d44039f238034bcb2d2f36">  129</a></span>&#160;<span class="preprocessor">#define EMPTY_IFLAG  0x00U</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="msx_8h.html#a2ca7720b9a5da9b2173e1f74dba85541">  135</a></span>&#160;<span class="preprocessor">#define VBL_IFLAG    0x01U</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="msx_8h.html#a61a9e2910380de6abb34df14ef634eb4">  139</a></span>&#160;<span class="preprocessor">#define LCD_IFLAG    0x02U</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="msx_8h.html#a604256210ec5b90b68185e1a18efab49">  142</a></span>&#160;<span class="preprocessor">#define TIM_IFLAG    0x04U</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="msx_8h.html#ad90564458646c5646b3880b93db3443e">  145</a></span>&#160;<span class="preprocessor">#define SIO_IFLAG    0x08U</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="msx_8h.html#a2f829cf27d6e3e24c875e9b82dfcb280">  148</a></span>&#160;<span class="preprocessor">#define JOY_IFLAG    0x10U</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="msx_8h.html#aefda0091b2934571a11e07b512735f50">  150</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aefda0091b2934571a11e07b512735f50">set_interrupts</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> flags) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="comment">/* Limits */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="msx_8h.html#ada0cc738d27aad251151e69cb8d250e1">  155</a></span>&#160;<span class="preprocessor">#define SCREENWIDTH  DEVICE_SCREEN_PX_WIDTH</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="msx_8h.html#ae189e98d0ef9263c37869ce1ff3710a5">  158</a></span>&#160;<span class="preprocessor">#define SCREENHEIGHT DEVICE_SCREEN_PX_HEIGHT</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="msx_8h.html#a5a796bbf3e4347d914b83568350143a9">  161</a></span>&#160;<span class="preprocessor">#define MINWNDPOSX   0x00U</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="msx_8h.html#af3d632ba2d7cef6619df5dfea8730909">  164</a></span>&#160;<span class="preprocessor">#define MINWNDPOSY   0x00U</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="msx_8h.html#a6dffb66ec1b1d9bb380a1af52a601ec5">  167</a></span>&#160;<span class="preprocessor">#define MAXWNDPOSX   0x00U</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="msx_8h.html#ad57f2f8c54204687f02801d8ab1bd150">  170</a></span>&#160;<span class="preprocessor">#define MAXWNDPOSY   0x00U</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">  175</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>)(void) <a class="code" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a>;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="msx_8h.html#a98f7ef49e1758c601979bcb0ff19a1f0">  180</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a98f7ef49e1758c601979bcb0ff19a1f0">remove_VBL</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="msx_8h.html#aa8962b27b960bb0c8d3bb899246c690c">  185</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aa8962b27b960bb0c8d3bb899246c690c">remove_LCD</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="msx_8h.html#a98785a1b0ddc91cd8e8c8fab8de1de20">  187</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a98785a1b0ddc91cd8e8c8fab8de1de20">remove_TIM</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="msx_8h.html#a98de9141f407585801fcbf55bf6dcc4c">  188</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a98de9141f407585801fcbf55bf6dcc4c">remove_SIO</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="msx_8h.html#a35a3ff12ab34534b763517576afe38a6">  189</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a35a3ff12ab34534b763517576afe38a6">remove_JOY</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="msx_8h.html#ae59628e2237f301df1341e22bfc8296e">  193</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ae59628e2237f301df1341e22bfc8296e">add_VBL</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="msx_8h.html#a51add93356a25c71e8c37a73c9065c9d">  197</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a51add93356a25c71e8c37a73c9065c9d">add_LCD</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="msx_8h.html#a6c66a583a8f0744e3985c89725e3dc10">  201</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a6c66a583a8f0744e3985c89725e3dc10">add_TIM</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="msx_8h.html#a3372d61a07e0466bdb909a27f3aaaca9">  205</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a3372d61a07e0466bdb909a27f3aaaca9">add_SIO</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="msx_8h.html#a48163816121cd669526817d3e6266fd9">  209</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a48163816121cd669526817d3e6266fd9">add_JOY</a>(<a class="code" href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="msx_8h.html#ade1cd2eab862b0e479415288964b3d63">  213</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#ade1cd2eab862b0e479415288964b3d63">cancel_pending_interrupts</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordflow">return</span> VDP_STATUS;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;}</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="msx_8h.html#a6261537edc74068e3f7f057e6a3e8a57">  217</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a6261537edc74068e3f7f057e6a3e8a57">move_bkg</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <a class="code" href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">VDP_RSCX</a>, -x);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <a class="code" href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">VDP_RSCY</a>, y);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;}</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="msx_8h.html#a1f583f7a880daa6145ca78b086a209d1">  222</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a1f583f7a880daa6145ca78b086a209d1">scroll_bkg</a>(<a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> x, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> y) {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <a class="code" href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">VDP_RSCX</a>, <a class="code" href="msx_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">VDP_RSCX</a>) - x);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <a class="code" href="stdint_8h.html#a66634143db08bebe9b46ab4cb1fc6fd3">int16_t</a> tmp = <a class="code" href="msx_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">VDP_RSCY</a>) + y;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <a class="code" href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">VDP_RSCY</a>, (tmp &lt; 0) ? 224 + tmp : tmp % 224u);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">  238</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#af57b77452ef377da18e4fbf0288013d1">vsync</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="msx_8h.html#a815f8ecad32d14b786a8ed1168518773">  242</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a815f8ecad32d14b786a8ed1168518773">wait_vbl_done</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="msx_8h.html#afe5714734a8fea7b1617ba377b3c0a06">  248</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#afe5714734a8fea7b1617ba377b3c0a06">display_off</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <a class="code" href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="code" href="msx_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="code" href="msx_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) &amp;= (~<a class="code" href="msx_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">R1_DISP_ON</a>));</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;}</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="msx_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">  255</a></span>&#160;<span class="preprocessor">#define DISPLAY_ON \</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="preprocessor">    __WRITE_VDP_REG(VDP_R1, __READ_VDP_REG(VDP_R1) |= R1_DISP_ON)</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="msx_8h.html#ad2ec9831813c5e7069917aa4455af682">  261</a></span>&#160;<span class="preprocessor">#define DISPLAY_OFF \</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="preprocessor">    display_off();</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="msx_8h.html#ac23dbe69b5ee241af2da4f77bb580fa5">  266</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ac23dbe69b5ee241af2da4f77bb580fa5">refresh_OAM</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="msx_8h.html#a0659212acd317ccdebc0ecf435df330f">  271</a></span>&#160;<span class="preprocessor">#define HIDE_LEFT_COLUMN \</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;<span class="preprocessor">    __WRITE_VDP_REG(VDP_R0, __READ_VDP_REG(VDP_R0) |= R0_LCB)</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="msx_8h.html#a5497c2255a9474d397446710189eacbe">  277</a></span>&#160;<span class="preprocessor">#define SHOW_LEFT_COLUMN \</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="preprocessor">    __WRITE_VDP_REG(VDP_R0, __READ_VDP_REG(VDP_R0) &amp;= (~R0_LCB))</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="msx_8h.html#a3f3f7bd5879b807acbb203ce2aaa1e5d">  282</a></span>&#160;<span class="preprocessor">#define SET_BORDER_COLOR(C) __WRITE_VDP_REG(VDP_R7, ((C) | 0xf0u))</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; </div>
<div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="msx_8h.html#a8e3f36aa68ac036695816757f2a1322c">  287</a></span>&#160;<span class="preprocessor">#define SHOW_BKG</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; </div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="msx_8h.html#a6d25f7c43b1cbbb48b95cda7ab2c3141">  292</a></span>&#160;<span class="preprocessor">#define HIDE_BKG</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="msx_8h.html#ab19da2ab719bb8897bc0843a84af28f8">  297</a></span>&#160;<span class="preprocessor">#define SHOW_WIN</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="msx_8h.html#aedb6e32c42d4b1d25ad11adccd7100c3">  302</a></span>&#160;<span class="preprocessor">#define HIDE_WIN</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="msx_8h.html#a495bc9f405f916f02ad5d97e6e730134">  307</a></span>&#160;<span class="preprocessor">#define SHOW_SPRITES</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="msx_8h.html#a69ef98aee664b8abd8d1a3d45f016dda">  312</a></span>&#160;<span class="preprocessor">#define HIDE_SPRITES</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="msx_8h.html#aa04ce1ed2f8bd28062798b20b09f601e">  316</a></span>&#160;<span class="preprocessor">#define SPRITES_16x16 \</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;<span class="preprocessor">    __WRITE_VDP_REG(VDP_R1, __READ_VDP_REG(VDP_R1) |= R1_SPR_16X16)</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="msx_8h.html#aa87bec0d134136fdb727f52cb773b792">  321</a></span>&#160;<span class="preprocessor">#define SPRITES_8x8 \</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="preprocessor">    __WRITE_VDP_REG(VDP_R1, __READ_VDP_REG(VDP_R1) &amp;= (~R1_SPR_16X16))</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="msx_8h.html#a231ec05679809190782e61c6e8aaaba4">  327</a></span>&#160;<span class="preprocessor">#define DEVICE_SUPPORTS_COLOR (TRUE)</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="msx_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a>;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; </div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a379ebafd4dc456a9a0c10290bb38fe7c">_vbl_done</a>;</div>
<div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="msx_8h.html#a559dbd32dba6867c1ee4e481077b62ab">  343</a></span>&#160;<span class="preprocessor">#define VBL_DONE _vbl_done</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160; </div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="msx_8h.html#a8824313c4053d770df23c3233b6cde33">  350</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a8824313c4053d770df23c3233b6cde33">get_r_reg</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="msx_8h.html#a2032c420256dfa5c5c62fe73841fa56d">  352</a></span>&#160;<span class="preprocessor">#define DIV_REG get_r_reg()</span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a06bab3f8bce032de0d21fbd86e14c3f3">_current_bank</a>;</div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="msx_8h.html#ae042588f20bf5a2349c8ad8716245233">  357</a></span>&#160;<span class="preprocessor">#define CURRENT_BANK _current_bank</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; </div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="preprocessor">#ifndef BANK</span></div>
<div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="msx_8h.html#a42705001e2b9897f5167b67fb36c69dd">  369</a></span>&#160;<span class="preprocessor">#define BANK(VARNAME) ( (uint8_t) &amp; __bank_ ## VARNAME )</span></div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno"><a class="line" href="msx_8h.html#a086293f2afb4c7945460a4496b20aea3">  384</a></span>&#160;<span class="preprocessor">#define BANKREF(VARNAME) void __func_ ## VARNAME(void) __banked __naked { \</span></div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;<span class="preprocessor">__asm \</span></div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="preprocessor">    .local b___func_ ## VARNAME \</span></div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="preprocessor">    ___bank_ ## VARNAME = b___func_ ## VARNAME \</span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="preprocessor">    .globl ___bank_ ## VARNAME \</span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="preprocessor">__endasm; \</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="preprocessor">}</span></div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; </div>
<div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="msx_8h.html#a261bba55a07b802baf99346feadd9852">  401</a></span>&#160;<span class="preprocessor">#define BANKREF_EXTERN(VARNAME) extern const void __bank_ ## VARNAME;</span></div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="msx_8h.html#ac996706e2a5e73f010841437f26d4d4f">  408</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ac996706e2a5e73f010841437f26d4d4f">SWITCH_ROM</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bank) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="msx_8h.html#a86d47feb2b999aaabbba9f63f4bb3567">  409</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM1 SWITCH_ROM</span></div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="msx_8h.html#a6d40a15ff27c2a1c8269d3dbe67eae65">  415</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM2(b) MAP_FRAME2=(b)</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160; </div>
<div class="line"><a name="l00421"></a><span class="lineno"><a class="line" href="msx_8h.html#a121feb0c32d124562f52398aa9656e7b">  421</a></span>&#160;<span class="preprocessor">#define SWITCH_RAM(b) RAM_CONTROL=((b)&amp;1)?RAM_CONTROL|RAMCTL_BANK:RAM_CONTROL&amp;(~RAMCTL_BANK)</span></div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160; </div>
<div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="msx_8h.html#a0e9c88657beaac946231a4801481b97f">  426</a></span>&#160;<span class="preprocessor">#define ENABLE_RAM RAM_CONTROL|=RAMCTL_RAM</span></div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; </div>
<div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="msx_8h.html#a649d27b5587de16a66176e03a1b8ebd5">  431</a></span>&#160;<span class="preprocessor">#define DISABLE_RAM RAM_CONTROL&amp;=(~RAMCTL_RAM)</span></div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160; </div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160; </div>
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="msx_8h.html#a217232c82eb5f99f7639b5786ce5abc6">  438</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a217232c82eb5f99f7639b5786ce5abc6">delay</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a>;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160; </div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160; </div>
<div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="msx_8h.html#a5d30da8cdcfa644b7f6dc331cce6de5b">  443</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a5d30da8cdcfa644b7f6dc331cce6de5b">joypad</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="msx_8h.html#a79b565677967da5ef9bf1a00aa6776ce">  447</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a79b565677967da5ef9bf1a00aa6776ce">waitpad</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mask) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160; </div>
<div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="msx_8h.html#ac4060da96eda27d24fec82f7be6007ab">  454</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ac4060da96eda27d24fec82f7be6007ab">waitpadup</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160; </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> npads;</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    <span class="keyword">union </span>{</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;            <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joy0, joy1, joy2, joy3;</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        };</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joypads[4];</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    };</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;} <a class="code" href="structjoypads__t.html">joypads_t</a>;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160; </div>
<div class="line"><a name="l00479"></a><span class="lineno"><a class="line" href="msx_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">  479</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">joypad_init</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> npads, <a class="code" href="structjoypads__t.html">joypads_t</a> * joypads) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a>;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160; </div>
<div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="msx_8h.html#a1d45c65829490c5ec98362f5e60edc20">  487</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a1d45c65829490c5ec98362f5e60edc20">joypad_ex</a>(<a class="code" href="structjoypads__t.html">joypads_t</a> * joypads) <a class="code" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160; </div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160; </div>
<div class="line"><a name="l00498"></a><span class="lineno"><a class="line" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">  498</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aad3a9797fd6d216671b5bbaccd8a4916">enable_interrupts</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(a, <a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>) {</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    __asm__(<span class="stringliteral">&quot;ei&quot;</span>);</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;}</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160; </div>
<div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="msx_8h.html#ae3e53d15b4fc64f43761f55c1793b490">  514</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ae3e53d15b4fc64f43761f55c1793b490">disable_interrupts</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(a, <a class="code" href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>, <a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>) {</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;    __asm__(<span class="stringliteral">&quot;di&quot;</span>);</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;}</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160; </div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;<span class="preprocessor">#if defined(__TARGET_msxdos)</span></div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160; </div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;<span class="preprocessor">#define RGB(r,g,b)        ((r) | ((g) &lt;&lt; 2) | ((b) &lt;&lt; 4))</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;<span class="preprocessor">#define RGB8(r,g,b)       (((r) &gt;&gt; 6) | (((g) &gt;&gt; 6) &lt;&lt; 2) | (((b) &gt;&gt; 6) &lt;&lt; 4))</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<span class="preprocessor">#define RGBHTML(RGB24bit) (((RGB24bit) &gt;&gt; 22) | ((((RGB24bit) &amp; 0xFFFF) &gt;&gt; 14) &lt;&lt; 2) | ((((RGB24bit) &amp; 0xFF) &gt;&gt; 6) &lt;&lt; 4))</span></div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160; </div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;<span class="preprocessor">#define RGB_RED        RGB( 3,  0,  0)</span></div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;<span class="preprocessor">#define RGB_DARKRED    RGB( 2,  0,  0)</span></div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="preprocessor">#define RGB_GREEN      RGB( 0,  3,  0)</span></div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;<span class="preprocessor">#define RGB_DARKGREEN  RGB( 0,  2,  0)</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="preprocessor">#define RGB_BLUE       RGB( 0,  0,  3)</span></div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="preprocessor">#define RGB_DARKBLUE   RGB( 0,  0,  2)</span></div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;<span class="preprocessor">#define RGB_YELLOW     RGB( 3,  3,  0)</span></div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;<span class="preprocessor">#define RGB_DARKYELLOW RGB( 2,  2,  0)</span></div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;<span class="preprocessor">#define RGB_CYAN       RGB( 0,  3,  3)</span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="preprocessor">#define RGB_AQUA       RGB( 3,  1,  2)</span></div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="preprocessor">#define RGB_PINK       RGB( 3,  0,  3)</span></div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;<span class="preprocessor">#define RGB_PURPLE     RGB( 2,  0,  2)</span></div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="preprocessor">#define RGB_BLACK      RGB( 0,  0,  0)</span></div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;<span class="preprocessor">#define RGB_DARKGRAY   RGB( 1,  1,  1)</span></div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;<span class="preprocessor">#define RGB_LIGHTGRAY  RGB( 2,  2,  2)</span></div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;<span class="preprocessor">#define RGB_WHITE      RGB( 3,  3,  3)</span></div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160; </div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;<span class="keyword">typedef</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a>;</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160; </div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;<span class="preprocessor">#error Unrecognized port</span></div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160; </div>
<div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="msx_8h.html#a2a89f4110072dbe76805e7b07299788d">  550</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a2a89f4110072dbe76805e7b07299788d">set_default_palette</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="cgb_8h.html#a871b5b1aba74ab8764f72b73bc090adb">  551</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a871b5b1aba74ab8764f72b73bc090adb">cpu_fast</a>(<span class="keywordtype">void</span>) {}</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00553"></a><span class="lineno"><a class="line" href="msx_8h.html#a2c9aabf4519e01257b0d0e04e8108164">  553</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> entry, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> rgb_data) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00554"></a><span class="lineno"><a class="line" href="msx_8h.html#a2215732f2ba2ec6406b65d3cca56a200">  554</a></span>&#160;<span class="preprocessor">#define set_bkg_palette_entry set_palette_entry</span></div>
<div class="line"><a name="l00555"></a><span class="lineno"><a class="line" href="msx_8h.html#a8b5c17235a3f65af70492e109a25f237">  555</a></span>&#160;<span class="preprocessor">#define set_sprite_palette_entry(palette,entry,rgb_data) set_palette_entry(1,entry,rgb_data)</span></div>
<div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="msx_8h.html#af288f3b302839006d33d38755d922de0">  556</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#af288f3b302839006d33d38755d922de0">set_palette</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_palettes, <span class="keyword">const</span> <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> *rgb_data) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a>;</div>
<div class="line"><a name="l00557"></a><span class="lineno"><a class="line" href="msx_8h.html#a9f879bd31899f7989f887b6238de24e3">  557</a></span>&#160;<span class="preprocessor">#define set_bkg_palette set_palette</span></div>
<div class="line"><a name="l00558"></a><span class="lineno"><a class="line" href="msx_8h.html#a7d5ed1aed79d8fd2894893d7f6f9b835">  558</a></span>&#160;<span class="preprocessor">#define set_sprite_palette(first_palette,nb_palettes,rgb_data) set_palette(1,1,rgb_data)</span></div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160; </div>
<div class="line"><a name="l00560"></a><span class="lineno"><a class="line" href="msx_8h.html#aed37a51ad86371d20b2fda0affbac4ed">  560</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aed37a51ad86371d20b2fda0affbac4ed">set_native_tile_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a>;</div>
<div class="line"><a name="l00561"></a><span class="lineno"><a class="line" href="msx_8h.html#aeff13dca11be49e8c159820c616016ec">  561</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aeff13dca11be49e8c159820c616016ec">set_bkg_4bpp_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) {</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    <a class="code" href="msx_8h.html#aed37a51ad86371d20b2fda0affbac4ed">set_native_tile_data</a>(start, ntiles, src);</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;}</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a5d2b4e2b820a369f6605982d031235a7">set_sprite_1bpp_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a>;</div>
<div class="line"><a name="l00565"></a><span class="lineno"><a class="line" href="msx_8h.html#a3ffff05df6414401d465faf45d9a3576">  565</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a3ffff05df6414401d465faf45d9a3576">set_native_sprite_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) {</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <a class="code" href="msx_8h.html#a5d2b4e2b820a369f6605982d031235a7">set_sprite_1bpp_data</a>(start, ntiles, src);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;}</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160; </div>
<div class="line"><a name="l00569"></a><span class="lineno"><a class="line" href="msx_8h.html#a67f80e65620470b55a4950e2966eb868">  569</a></span>&#160;<span class="preprocessor">#define COMPAT_PALETTE(C0,C1,C2,C3) (((uint16_t)(C3) &lt;&lt; 12) | ((uint16_t)(C2) &lt;&lt; 8) | ((uint16_t)(C1) &lt;&lt; 4) | (uint16_t)(C0))</span></div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="msx_8h.html#a22dc57e538f0f49e2dc7d1c73f67fc8f">_current_2bpp_palette</a>;</div>
<div class="line"><a name="l00571"></a><span class="lineno"><a class="line" href="msx_8h.html#aa224c9bac27c7fd268e62bdf33338a84">  571</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> palette) {</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <a class="code" href="msx_8h.html#a22dc57e538f0f49e2dc7d1c73f67fc8f">_current_2bpp_palette</a> = palette;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;}</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;<span class="comment">//void set_tile_2bpp_data(uint16_t start, uint16_t ntiles, const void *src, uint16_t palette) Z88DK_CALLEE PRESERVES_REGS(iyh, iyl);</span></div>
<div class="line"><a name="l00575"></a><span class="lineno"><a class="line" href="msx_8h.html#a8130306da1177f4fef89e699f8e2add4">  575</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a8130306da1177f4fef89e699f8e2add4">set_bkg_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) {</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    <a class="code" href="msx_8h.html#aed37a51ad86371d20b2fda0affbac4ed">set_native_tile_data</a>(start, ntiles, src);</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;}</div>
<div class="line"><a name="l00578"></a><span class="lineno"><a class="line" href="msx_8h.html#a216a3e3d320ee4d8cf4845600487ae39">  578</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a216a3e3d320ee4d8cf4845600487ae39">set_sprite_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) {</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <a class="code" href="msx_8h.html#a5d2b4e2b820a369f6605982d031235a7">set_sprite_1bpp_data</a>(start, ntiles, src);</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;}</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;<span class="comment">//inline void set_bkg_2bpp_data(uint16_t start, uint16_t ntiles, const void *src) {</span></div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;<span class="comment">//    set_tile_2bpp_data(start, ntiles, src, _current_2bpp_palette);</span></div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;<span class="comment">//}</span></div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;<span class="comment">//inline void set_sprite_2bpp_data(uint16_t start, uint16_t ntiles, const void *src) {</span></div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;<span class="comment">//    set_tile_2bpp_data((uint8_t)(start) + 0x100u, ntiles, src, _current_2bpp_palette);</span></div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;<span class="comment">//}</span></div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="msx_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a>;</div>
<div class="line"><a name="l00589"></a><span class="lineno"><a class="line" href="msx_8h.html#adcb394299a1033616fc7d2faec8bd6ad">  589</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#adcb394299a1033616fc7d2faec8bd6ad">set_1bpp_colors</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> fgcolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bgcolor) {</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <a class="code" href="msx_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a> = ((<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)bgcolor &lt;&lt; 8) | fgcolor;</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;}</div>
<div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="msx_8h.html#a747033606e041b45ae09b38fdb06b871">  592</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a747033606e041b45ae09b38fdb06b871">set_tile_1bpp_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> colors) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00593"></a><span class="lineno"><a class="line" href="msx_8h.html#a4d5f74eed0489ebfdc2410ee3f9f7f04">  593</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a4d5f74eed0489ebfdc2410ee3f9f7f04">set_bkg_1bpp_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, <span class="keyword">const</span> <span class="keywordtype">void</span> *src) {</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <a class="code" href="msx_8h.html#a747033606e041b45ae09b38fdb06b871">set_tile_1bpp_data</a>(start, ntiles, src, <a class="code" href="msx_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a>);</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;}</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160; </div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160; </div>
<div class="line"><a name="l00606"></a><span class="lineno"><a class="line" href="msx_8h.html#a8fe17423c7ef7c44f1ccff27d3afbebc">  606</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a8fe17423c7ef7c44f1ccff27d3afbebc">set_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> dst, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> size) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00607"></a><span class="lineno"><a class="line" href="msx_8h.html#a33a749b14dfbd203c460e8d7f3500636">  607</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a33a749b14dfbd203c460e8d7f3500636">vmemcpy</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> dst, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> size) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160; </div>
<div class="line"><a name="l00609"></a><span class="lineno"><a class="line" href="msx_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">  609</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">set_tile_map</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00610"></a><span class="lineno"><a class="line" href="msx_8h.html#a9a732aec1b7aec7d10a9d76ca4da2064">  610</a></span>&#160;<span class="preprocessor">#define set_bkg_tiles set_tile_map</span></div>
<div class="line"><a name="l00611"></a><span class="lineno"><a class="line" href="msx_8h.html#a429db030287423012f40a6dca81ae7e3">  611</a></span>&#160;<span class="preprocessor">#define set_win_tiles set_tile_map</span></div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160; </div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a>;</div>
<div class="line"><a name="l00614"></a><span class="lineno"><a class="line" href="msx_8h.html#a811c386cac0df2d260aacb5a43608be5">  614</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a811c386cac0df2d260aacb5a43608be5">set_bkg_based_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    <a class="code" href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = base_tile;</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    <a class="code" href="msx_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">set_tile_map</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, tiles);</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <a class="code" href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = 0;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;}</div>
<div class="line"><a name="l00619"></a><span class="lineno"><a class="line" href="msx_8h.html#a739a212609ae60c9c56c095f96b4ea80">  619</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a739a212609ae60c9c56c095f96b4ea80">set_win_based_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    <a class="code" href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = base_tile;</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    <a class="code" href="msx_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">set_tile_map</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, tiles);</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    <a class="code" href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = 0;</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;}</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160; </div>
<div class="line"><a name="l00625"></a><span class="lineno"><a class="line" href="msx_8h.html#a84774e034fe0e70af62bd17ac716ba34">  625</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a84774e034fe0e70af62bd17ac716ba34">set_tile_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00626"></a><span class="lineno"><a class="line" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">  626</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00627"></a><span class="lineno"><a class="line" href="gb_8h.html#adb21d1c7d533a7133bab36a845489780">  627</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a0cfd261bc7a94b1f6093f423bad30298">set_bkg_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w) {</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    <a class="code" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, map_w, map);</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;}</div>
<div class="line"><a name="l00630"></a><span class="lineno"><a class="line" href="gb_8h.html#af80befa3cad9cae361c7cf4fffb3a8de">  630</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#abb50a392ca0d0419a080413287ee5d79">set_win_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w) {</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;    <a class="code" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, map_w, map);</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;}</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160; </div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a>;</div>
<div class="line"><a name="l00635"></a><span class="lineno"><a class="line" href="msx_8h.html#abc8bc5808620a9717263b8c9ec2237f0">  635</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#abc8bc5808620a9717263b8c9ec2237f0">set_bkg_based_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    <a class="code" href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = base_tile;</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <a class="code" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, map_w, map);</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    <a class="code" href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = 0;</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;}</div>
<div class="line"><a name="l00640"></a><span class="lineno"><a class="line" href="msx_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">  640</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">set_win_based_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <a class="code" href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = base_tile;</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    <a class="code" href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a>(x, y, w, <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, map_w, map);</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    <a class="code" href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = 0;</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;}</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160; </div>
<div class="line"><a name="l00646"></a><span class="lineno"><a class="line" href="msx_8h.html#aba932d128338fb19644842565139a20d">  646</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#aba932d128338fb19644842565139a20d">fill_rect</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> tile) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00647"></a><span class="lineno"><a class="line" href="msx_8h.html#a3b7ffab8d64e2c345f03221145a935c0">  647</a></span>&#160;<span class="preprocessor">#define fill_bkg_rect fill_rect</span></div>
<div class="line"><a name="l00648"></a><span class="lineno"><a class="line" href="msx_8h.html#a5a69a3129f4faa99857a8b3d80db1d4a">  648</a></span>&#160;<span class="preprocessor">#define fill_win_rect fill_rect</span></div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160; </div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> {</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;  <span class="comment">//&lt; X, Y Coordinates of the sprite on screen</span></div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;  <span class="comment">//&lt; Sprite tile number</span></div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;  <span class="comment">//&lt; OAM Property Flags</span></div>
<div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="msx_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">  660</a></span>&#160;} <a class="code" href="msx_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a>;</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160; </div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160; </div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keyword">struct </span><a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[];</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a>;</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160; </div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a388d1dff2698172ba8574e43f5c77c93">_shadow_OAM_OFF</a>;</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160; </div>
<div class="line"><a name="l00699"></a><span class="lineno"><a class="line" href="msx_8h.html#abfd70bf31185a4900680977c9fb5a5ec">  699</a></span>&#160;<span class="preprocessor">#define DISABLE_VBL_TRANSFER \</span></div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;<span class="preprocessor">    _shadow_OAM_base = 0</span></div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160; </div>
<div class="line"><a name="l00704"></a><span class="lineno"><a class="line" href="msx_8h.html#a77d516c9d3f86f100eddea5e0d133a76">  704</a></span>&#160;<span class="preprocessor">#define ENABLE_VBL_TRANSFER \</span></div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;<span class="preprocessor">    _shadow_OAM_base = (uint8_t)((uint16_t)&amp;shadow_OAM &gt;&gt; 8)</span></div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160; </div>
<div class="line"><a name="l00709"></a><span class="lineno"><a class="line" href="msx_8h.html#a8b77608c87a9aef65a03531482b2163b">  709</a></span>&#160;<span class="preprocessor">#define MAX_HARDWARE_SPRITES 32</span></div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160; </div>
<div class="line"><a name="l00713"></a><span class="lineno"><a class="line" href="msx_8h.html#afc296eacbda6a42f2a71aacab376ceb7">  713</a></span>&#160;<span class="preprocessor">#define HARDWARE_SPRITE_CAN_FLIP_X 0</span></div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160; </div>
<div class="line"><a name="l00717"></a><span class="lineno"><a class="line" href="msx_8h.html#a9119d69d971f6bee9e55d0df8f0ac983">  717</a></span>&#160;<span class="preprocessor">#define HARDWARE_SPRITE_CAN_FLIP_Y 0</span></div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160; </div>
<div class="line"><a name="l00721"></a><span class="lineno"><a class="line" href="msx_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">  721</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a>(<span class="keywordtype">void</span> * address) {</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    <a class="code" href="msx_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a> = (<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>)((<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)address &gt;&gt; 8);</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;}</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160; </div>
<div class="line"><a name="l00741"></a><span class="lineno"><a class="line" href="msx_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">  741</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>) {</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;    <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>=<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;}</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160; </div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160; </div>
<div class="line"><a name="l00752"></a><span class="lineno"><a class="line" href="msx_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">  752</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">get_sprite_tile</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;}</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160; </div>
<div class="line"><a name="l00756"></a><span class="lineno"><a class="line" href="msx_8h.html#a99ea3252469e3614e977cce2aa1d06f7">  756</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>) {</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a> = <a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;}</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160; </div>
<div class="line"><a name="l00760"></a><span class="lineno"><a class="line" href="msx_8h.html#a6b873c807c9e2c90fb574951e85fdf88">  760</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="msx_8h.html#a6b873c807c9e2c90fb574951e85fdf88">get_sprite_prop</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;}</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160; </div>
<div class="line"><a name="l00776"></a><span class="lineno"><a class="line" href="msx_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">  776</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>) {</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    <a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> * itm = &amp;<a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb];</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>=<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>=<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;}</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160; </div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160; </div>
<div class="line"><a name="l00792"></a><span class="lineno"><a class="line" href="msx_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">  792</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">scroll_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>) {</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    <a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> * itm = &amp;<a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb];</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>+=<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>+=<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;}</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160; </div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160; </div>
<div class="line"><a name="l00802"></a><span class="lineno"><a class="line" href="msx_8h.html#ad22c51635d052399bbbe1777999c794d">  802</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="msx_8h.html#ad22c51635d052399bbbe1777999c794d">hide_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    <a class="code" href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a> = 0xC0;</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;}</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160; </div>
<div class="line"><a name="l00812"></a><span class="lineno"><a class="line" href="msx_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">  812</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="msx_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">set_vram_byte</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * addr, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> v) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160; </div>
<div class="line"><a name="l00821"></a><span class="lineno"><a class="line" href="msx_8h.html#a476f433ea736a1dd610490238f2a6250">  821</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="msx_8h.html#a476f433ea736a1dd610490238f2a6250">set_attributed_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> t) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160; </div>
<div class="line"><a name="l00830"></a><span class="lineno"><a class="line" href="msx_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">  830</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="msx_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> t) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00831"></a><span class="lineno"><a class="line" href="msx_8h.html#adcd40a58f7c7d348d506cc400cd94739">  831</a></span>&#160;<span class="preprocessor">#define set_bkg_tile_xy set_tile_xy</span></div>
<div class="line"><a name="l00832"></a><span class="lineno"><a class="line" href="msx_8h.html#a95d929d964d9988f4dc5a25ed399ae08">  832</a></span>&#160;<span class="preprocessor">#define set_win_tile_xy set_tile_xy</span></div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160; </div>
<div class="line"><a name="l00837"></a><span class="lineno"><a class="line" href="msx_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">  837</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="msx_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">get_bkg_xy_addr</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>) <a class="code" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a>, <a class="code" href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a>);</div>
<div class="line"><a name="l00838"></a><span class="lineno"><a class="line" href="msx_8h.html#a6eaafdbe6cf1695d30724ce75acb9412">  838</a></span>&#160;<span class="preprocessor">#define get_win_xy_addr get_bkg_xy_addr</span></div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160; </div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _MSX_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
<div class="ttc" id="aasm_2types_8h_html_a7ed081d8dfb6902784b2fc730bbb7f96"><div class="ttname"><a href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></div><div class="ttdeci">#define NONBANKED</div><div class="ttdef"><b>Definition:</b> types.h:40</div></div>
<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:32</div></div>
<div class="ttc" id="aasm_2z80_2types_8h_html_aa19670cfef9fe1cc31f28fafb0e1000a"><div class="ttname"><a href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a></div><div class="ttdeci">#define Z88DK_CALLEE</div><div class="ttdef"><b>Definition:</b> types.h:46</div></div>
<div class="ttc" id="aasm_2z80_2types_8h_html_af45e54cf59a5202abc9125c07b64abf1"><div class="ttname"><a href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></div><div class="ttdeci">#define Z88DK_FASTCALL</div><div class="ttdef"><b>Definition:</b> types.h:47</div></div>
<div class="ttc" id="acgb_8h_html_af868d7cdbd052c6b972ef137e02f6495"><div class="ttname"><a href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a></div><div class="ttdeci">uint16_t palette_color_t</div><div class="ttdef"><b>Definition:</b> cgb.h:85</div></div>
<div class="ttc" id="amsx_2hardware_8h_html"><div class="ttname"><a href="msx_2hardware_8h.html">hardware.h</a></div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a3cce162b45d638126c478c5b6f7bcbc7"><div class="ttname"><a href="msx_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">VDP_RSCY</a></div><div class="ttdeci">#define VDP_RSCY</div><div class="ttdef"><b>Definition:</b> hardware.h:113</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a413fdabdacfcda90cc73a04311a2ec6d"><div class="ttname"><a href="msx_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a></div><div class="ttdeci">#define VDP_R1</div><div class="ttdef"><b>Definition:</b> hardware.h:53</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a9c49833bc96a70b8972027d28c816d2f"><div class="ttname"><a href="msx_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">VDP_RSCX</a></div><div class="ttdeci">#define VDP_RSCX</div><div class="ttdef"><b>Definition:</b> hardware.h:108</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_adbfdd7c42539613c371820dffd14906f"><div class="ttname"><a href="msx_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">R1_DISP_ON</a></div><div class="ttdeci">#define R1_DISP_ON</div><div class="ttdef"><b>Definition:</b> hardware.h:58</div></div>
<div class="ttc" id="amsx_8h_html_a05bf0b9f1328de7b568a19a2a428bcfe"><div class="ttname"><a href="msx_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a></div><div class="ttdeci">void set_sprite_tile(uint8_t nb, uint8_t tile)</div><div class="ttdef"><b>Definition:</b> msx.h:741</div></div>
<div class="ttc" id="amsx_8h_html_a06bab3f8bce032de0d21fbd86e14c3f3"><div class="ttname"><a href="msx_8h.html#a06bab3f8bce032de0d21fbd86e14c3f3">_current_bank</a></div><div class="ttdeci">volatile uint8_t _current_bank</div><div class="ttdef"><b>Definition:</b> gb.h:534</div></div>
<div class="ttc" id="amsx_8h_html_a0a3d95ad0ab8ad213016101d2e9c3d3e"><div class="ttname"><a href="msx_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a></div><div class="ttdeci">void d</div><div class="ttdef"><b>Definition:</b> msx.h:102</div></div>
<div class="ttc" id="amsx_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="msx_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">void c</div><div class="ttdef"><b>Definition:</b> msx.h:102</div></div>
<div class="ttc" id="amsx_8h_html_a0cfd261bc7a94b1f6093f423bad30298"><div class="ttname"><a href="msx_8h.html#a0cfd261bc7a94b1f6093f423bad30298">set_bkg_submap</a></div><div class="ttdeci">void set_bkg_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)</div><div class="ttdef"><b>Definition:</b> msx.h:627</div></div>
<div class="ttc" id="amsx_8h_html_a14fc41e69085b5aa3da2fae9a2aa3ef3"><div class="ttname"><a href="msx_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">set_tile_map</a></div><div class="ttdeci">void set_tile_map(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a1b8a1026983cb2b2c0bd46334b4692a0"><div class="ttname"><a href="msx_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">set_win_based_submap</a></div><div class="ttdeci">void set_win_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> msx.h:640</div></div>
<div class="ttc" id="amsx_8h_html_a1d45c65829490c5ec98362f5e60edc20"><div class="ttname"><a href="msx_8h.html#a1d45c65829490c5ec98362f5e60edc20">joypad_ex</a></div><div class="ttdeci">void joypad_ex(joypads_t *joypads) Z88DK_FASTCALL PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a1f583f7a880daa6145ca78b086a209d1"><div class="ttname"><a href="msx_8h.html#a1f583f7a880daa6145ca78b086a209d1">scroll_bkg</a></div><div class="ttdeci">void scroll_bkg(int8_t x, int8_t y)</div><div class="ttdef"><b>Definition:</b> msx.h:222</div></div>
<div class="ttc" id="amsx_8h_html_a216a3e3d320ee4d8cf4845600487ae39"><div class="ttname"><a href="msx_8h.html#a216a3e3d320ee4d8cf4845600487ae39">set_sprite_data</a></div><div class="ttdeci">void set_sprite_data(uint16_t start, uint16_t ntiles, const void *src)</div><div class="ttdef"><b>Definition:</b> msx.h:578</div></div>
<div class="ttc" id="amsx_8h_html_a217232c82eb5f99f7639b5786ce5abc6"><div class="ttname"><a href="msx_8h.html#a217232c82eb5f99f7639b5786ce5abc6">delay</a></div><div class="ttdeci">void delay(uint16_t d) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a22dc57e538f0f49e2dc7d1c73f67fc8f"><div class="ttname"><a href="msx_8h.html#a22dc57e538f0f49e2dc7d1c73f67fc8f">_current_2bpp_palette</a></div><div class="ttdeci">uint16_t _current_2bpp_palette</div></div>
<div class="ttc" id="amsx_8h_html_a250f5339e05523912926be566e9eb8c0"><div class="ttname"><a href="msx_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a></div><div class="ttdeci">uint16_t _current_1bpp_colors</div></div>
<div class="ttc" id="amsx_8h_html_a2a89f4110072dbe76805e7b07299788d"><div class="ttname"><a href="msx_8h.html#a2a89f4110072dbe76805e7b07299788d">set_default_palette</a></div><div class="ttdeci">void set_default_palette(void)</div></div>
<div class="ttc" id="amsx_8h_html_a2c9aabf4519e01257b0d0e04e8108164"><div class="ttname"><a href="msx_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a></div><div class="ttdeci">void set_palette_entry(uint8_t palette, uint8_t entry, uint16_t rgb_data) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a3372d61a07e0466bdb909a27f3aaaca9"><div class="ttname"><a href="msx_8h.html#a3372d61a07e0466bdb909a27f3aaaca9">add_SIO</a></div><div class="ttdeci">void add_SIO(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a33a749b14dfbd203c460e8d7f3500636"><div class="ttname"><a href="msx_8h.html#a33a749b14dfbd203c460e8d7f3500636">vmemcpy</a></div><div class="ttdeci">void vmemcpy(uint16_t dst, const void *src, uint16_t size) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a35a3ff12ab34534b763517576afe38a6"><div class="ttname"><a href="msx_8h.html#a35a3ff12ab34534b763517576afe38a6">remove_JOY</a></div><div class="ttdeci">void remove_JOY(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a3619f9cb1e3c92238a033ead79a0c551"><div class="ttname"><a href="msx_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a></div><div class="ttdeci">volatile struct OAM_item_t shadow_OAM[]</div></div>
<div class="ttc" id="amsx_8h_html_a379ebafd4dc456a9a0c10290bb38fe7c"><div class="ttname"><a href="msx_8h.html#a379ebafd4dc456a9a0c10290bb38fe7c">_vbl_done</a></div><div class="ttdeci">volatile uint8_t _vbl_done</div><div class="ttdef"><b>Definition:</b> gb.h:476</div></div>
<div class="ttc" id="amsx_8h_html_a388d1dff2698172ba8574e43f5c77c93"><div class="ttname"><a href="msx_8h.html#a388d1dff2698172ba8574e43f5c77c93">_shadow_OAM_OFF</a></div><div class="ttdeci">volatile uint8_t _shadow_OAM_OFF</div></div>
<div class="ttc" id="amsx_8h_html_a3ea524204d839377cf39842eec23e202"><div class="ttname"><a href="msx_8h.html#a3ea524204d839377cf39842eec23e202">mode</a></div><div class="ttdeci">void mode(uint8_t m) OLDCALL</div></div>
<div class="ttc" id="amsx_8h_html_a3ffff05df6414401d465faf45d9a3576"><div class="ttname"><a href="msx_8h.html#a3ffff05df6414401d465faf45d9a3576">set_native_sprite_data</a></div><div class="ttdeci">void set_native_sprite_data(uint16_t start, uint16_t ntiles, const void *src)</div><div class="ttdef"><b>Definition:</b> msx.h:565</div></div>
<div class="ttc" id="amsx_8h_html_a4093fb5f45f807fe8d4a45121f3fffc5"><div class="ttname"><a href="msx_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5">get_system</a></div><div class="ttdeci">uint8_t get_system(void)</div><div class="ttdef"><b>Definition:</b> msx.h:122</div></div>
<div class="ttc" id="amsx_8h_html_a476f433ea736a1dd610490238f2a6250"><div class="ttname"><a href="msx_8h.html#a476f433ea736a1dd610490238f2a6250">set_attributed_tile_xy</a></div><div class="ttdeci">uint8_t * set_attributed_tile_xy(uint8_t x, uint8_t y, uint16_t t) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a48163816121cd669526817d3e6266fd9"><div class="ttname"><a href="msx_8h.html#a48163816121cd669526817d3e6266fd9">add_JOY</a></div><div class="ttdeci">void add_JOY(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a498b148efd22ab8ad9b844b2dc5e5bb8"><div class="ttname"><a href="msx_8h.html#a498b148efd22ab8ad9b844b2dc5e5bb8">WRITE_VDP_CMD</a></div><div class="ttdeci">void WRITE_VDP_CMD(uint16_t cmd) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="msx_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> msx.h:498</div></div>
<div class="ttc" id="amsx_8h_html_a4d5f74eed0489ebfdc2410ee3f9f7f04"><div class="ttname"><a href="msx_8h.html#a4d5f74eed0489ebfdc2410ee3f9f7f04">set_bkg_1bpp_data</a></div><div class="ttdeci">void set_bkg_1bpp_data(uint16_t start, uint16_t ntiles, const void *src)</div><div class="ttdef"><b>Definition:</b> msx.h:593</div></div>
<div class="ttc" id="amsx_8h_html_a51add93356a25c71e8c37a73c9065c9d"><div class="ttname"><a href="msx_8h.html#a51add93356a25c71e8c37a73c9065c9d">add_LCD</a></div><div class="ttdeci">void add_LCD(int_handler h) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a5435fd985412934e96a490e103c6bc49"><div class="ttname"><a href="msx_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a></div><div class="ttdeci">volatile uint8_t _shadow_OAM_base</div><div class="ttdef"><b>Definition:</b> gb.h:1836</div></div>
<div class="ttc" id="amsx_8h_html_a5834057f6297c0fa8f8e9a6b714f1ff7"><div class="ttname"><a href="msx_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a></div><div class="ttdeci">uint8_t * set_tile_xy(uint8_t x, uint8_t y, uint8_t t) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a5d2b4e2b820a369f6605982d031235a7"><div class="ttname"><a href="msx_8h.html#a5d2b4e2b820a369f6605982d031235a7">set_sprite_1bpp_data</a></div><div class="ttdeci">void set_sprite_1bpp_data(uint16_t start, uint16_t ntiles, const void *src) Z88DK_CALLEE</div><div class="ttdef"><b>Definition:</b> sms.h:661</div></div>
<div class="ttc" id="amsx_8h_html_a5d30da8cdcfa644b7f6dc331cce6de5b"><div class="ttname"><a href="msx_8h.html#a5d30da8cdcfa644b7f6dc331cce6de5b">joypad</a></div><div class="ttdeci">uint8_t joypad(void) OLDCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a6261537edc74068e3f7f057e6a3e8a57"><div class="ttname"><a href="msx_8h.html#a6261537edc74068e3f7f057e6a3e8a57">move_bkg</a></div><div class="ttdeci">void move_bkg(uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> msx.h:217</div></div>
<div class="ttc" id="amsx_8h_html_a66b4bfb8c1ea3005ff01ce040a778e63"><div class="ttname"><a href="msx_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">get_bkg_xy_addr</a></div><div class="ttdeci">uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a6b873c807c9e2c90fb574951e85fdf88"><div class="ttname"><a href="msx_8h.html#a6b873c807c9e2c90fb574951e85fdf88">get_sprite_prop</a></div><div class="ttdeci">uint8_t get_sprite_prop(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> msx.h:760</div></div>
<div class="ttc" id="amsx_8h_html_a6c59aa9a4f9ea42bed6ca6940b2741fe"><div class="ttname"><a href="msx_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">scroll_sprite</a></div><div class="ttdeci">void scroll_sprite(uint8_t nb, int8_t x, int8_t y)</div><div class="ttdef"><b>Definition:</b> msx.h:792</div></div>
<div class="ttc" id="amsx_8h_html_a6c66a583a8f0744e3985c89725e3dc10"><div class="ttname"><a href="msx_8h.html#a6c66a583a8f0744e3985c89725e3dc10">add_TIM</a></div><div class="ttdeci">void add_TIM(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a6f49bc517509dbff3b7f8fae4373b1f0"><div class="ttname"><a href="msx_8h.html#a6f49bc517509dbff3b7f8fae4373b1f0">get_mode</a></div><div class="ttdeci">uint8_t get_mode(void) OLDCALL</div></div>
<div class="ttc" id="amsx_8h_html_a739a212609ae60c9c56c095f96b4ea80"><div class="ttname"><a href="msx_8h.html#a739a212609ae60c9c56c095f96b4ea80">set_win_based_tiles</a></div><div class="ttdeci">void set_win_based_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> msx.h:619</div></div>
<div class="ttc" id="amsx_8h_html_a747033606e041b45ae09b38fdb06b871"><div class="ttname"><a href="msx_8h.html#a747033606e041b45ae09b38fdb06b871">set_tile_1bpp_data</a></div><div class="ttdeci">void set_tile_1bpp_data(uint16_t start, uint16_t ntiles, const void *src, uint16_t colors) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a78d2fd18666afec116f176d46debb4e7"><div class="ttname"><a href="msx_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a></div><div class="ttdeci">volatile uint16_t sys_time</div></div>
<div class="ttc" id="amsx_8h_html_a78fd7730ed37db84f52bcfc9ff41873f"><div class="ttname"><a href="msx_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a></div><div class="ttdeci">const uint8_t _SYSTEM</div></div>
<div class="ttc" id="amsx_8h_html_a79b565677967da5ef9bf1a00aa6776ce"><div class="ttname"><a href="msx_8h.html#a79b565677967da5ef9bf1a00aa6776ce">waitpad</a></div><div class="ttdeci">uint8_t waitpad(uint8_t mask) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a7e0cdfd6b9a2ae1b7f30384f132d8687"><div class="ttname"><a href="msx_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a></div><div class="ttdeci">void SET_SHADOW_OAM_ADDRESS(void *address)</div><div class="ttdef"><b>Definition:</b> msx.h:721</div></div>
<div class="ttc" id="amsx_8h_html_a811c386cac0df2d260aacb5a43608be5"><div class="ttname"><a href="msx_8h.html#a811c386cac0df2d260aacb5a43608be5">set_bkg_based_tiles</a></div><div class="ttdeci">void set_bkg_based_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> msx.h:614</div></div>
<div class="ttc" id="amsx_8h_html_a8130306da1177f4fef89e699f8e2add4"><div class="ttname"><a href="msx_8h.html#a8130306da1177f4fef89e699f8e2add4">set_bkg_data</a></div><div class="ttdeci">void set_bkg_data(uint16_t start, uint16_t ntiles, const void *src)</div><div class="ttdef"><b>Definition:</b> msx.h:575</div></div>
<div class="ttc" id="amsx_8h_html_a815f8ecad32d14b786a8ed1168518773"><div class="ttname"><a href="msx_8h.html#a815f8ecad32d14b786a8ed1168518773">wait_vbl_done</a></div><div class="ttdeci">void wait_vbl_done(void) PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a84774e034fe0e70af62bd17ac716ba34"><div class="ttname"><a href="msx_8h.html#a84774e034fe0e70af62bd17ac716ba34">set_tile_submap</a></div><div class="ttdeci">void set_tile_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t map_w, const uint8_t *map) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a871b5b1aba74ab8764f72b73bc090adb"><div class="ttname"><a href="msx_8h.html#a871b5b1aba74ab8764f72b73bc090adb">cpu_fast</a></div><div class="ttdeci">void cpu_fast(void)</div><div class="ttdef"><b>Definition:</b> msx.h:551</div></div>
<div class="ttc" id="amsx_8h_html_a8824313c4053d770df23c3233b6cde33"><div class="ttname"><a href="msx_8h.html#a8824313c4053d770df23c3233b6cde33">get_r_reg</a></div><div class="ttdeci">uint8_t get_r_reg(void) PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_a8e5ea12b86bdfc812448c2f5c4336c03"><div class="ttname"><a href="msx_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a></div><div class="ttdeci">struct OAM_item_t OAM_item_t</div></div>
<div class="ttc" id="amsx_8h_html_a8fe17423c7ef7c44f1ccff27d3afbebc"><div class="ttname"><a href="msx_8h.html#a8fe17423c7ef7c44f1ccff27d3afbebc">set_data</a></div><div class="ttdeci">void set_data(uint16_t dst, const void *src, uint16_t size) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a9508f919d9482d1d51534ccac212454d"><div class="ttname"><a href="msx_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a></div><div class="ttdeci">void(* int_handler)(void) NONBANKED</div><div class="ttdef"><b>Definition:</b> msx.h:175</div></div>
<div class="ttc" id="amsx_8h_html_a964e713cb2535d7464d0d6ca7677049a"><div class="ttname"><a href="msx_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a></div><div class="ttdeci">#define __READ_VDP_REG(REG)</div><div class="ttdef"><b>Definition:</b> msx.h:100</div></div>
<div class="ttc" id="amsx_8h_html_a98785a1b0ddc91cd8e8c8fab8de1de20"><div class="ttname"><a href="msx_8h.html#a98785a1b0ddc91cd8e8c8fab8de1de20">remove_TIM</a></div><div class="ttdeci">void remove_TIM(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a98de9141f407585801fcbf55bf6dcc4c"><div class="ttname"><a href="msx_8h.html#a98de9141f407585801fcbf55bf6dcc4c">remove_SIO</a></div><div class="ttdeci">void remove_SIO(int_handler h) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_a98f7ef49e1758c601979bcb0ff19a1f0"><div class="ttname"><a href="msx_8h.html#a98f7ef49e1758c601979bcb0ff19a1f0">remove_VBL</a></div><div class="ttdeci">void remove_VBL(int_handler h) Z88DK_FASTCALL PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_a99ea3252469e3614e977cce2aa1d06f7"><div class="ttname"><a href="msx_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a></div><div class="ttdeci">void set_sprite_prop(uint8_t nb, uint8_t prop)</div><div class="ttdef"><b>Definition:</b> msx.h:756</div></div>
<div class="ttc" id="amsx_8h_html_aa224c9bac27c7fd268e62bdf33338a84"><div class="ttname"><a href="msx_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a></div><div class="ttdeci">void set_2bpp_palette(uint16_t palette)</div><div class="ttdef"><b>Definition:</b> msx.h:571</div></div>
<div class="ttc" id="amsx_8h_html_aa2ddf9662320c4a9d00fd4a94d347570"><div class="ttname"><a href="msx_8h.html#aa2ddf9662320c4a9d00fd4a94d347570">WRITE_VDP_DATA</a></div><div class="ttdeci">void WRITE_VDP_DATA(uint16_t data) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_aa34282113397af810be737df1acec36c"><div class="ttname"><a href="msx_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a></div><div class="ttdeci">#define __WRITE_VDP_REG(REG, v)</div><div class="ttdef"><b>Definition:</b> msx.h:99</div></div>
<div class="ttc" id="amsx_8h_html_aa82205e9629f984d0b3dc8055c211522"><div class="ttname"><a href="msx_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a></div><div class="ttdeci">uint8_t _map_tile_offset</div></div>
<div class="ttc" id="amsx_8h_html_aa8962b27b960bb0c8d3bb899246c690c"><div class="ttname"><a href="msx_8h.html#aa8962b27b960bb0c8d3bb899246c690c">remove_LCD</a></div><div class="ttdeci">void remove_LCD(int_handler h) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_aad3a9797fd6d216671b5bbaccd8a4916"><div class="ttname"><a href="msx_8h.html#aad3a9797fd6d216671b5bbaccd8a4916">enable_interrupts</a></div><div class="ttdeci">void enable_interrupts(void) PRESERVES_REGS(a</div></div>
<div class="ttc" id="amsx_8h_html_aade844cba18122ad48cb2f92b1c87ab0"><div class="ttname"><a href="msx_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></div><div class="ttdeci">void iyh</div><div class="ttdef"><b>Definition:</b> msx.h:102</div></div>
<div class="ttc" id="amsx_8h_html_ab42c12c1d9aed3fd963248fbea9830cd"><div class="ttname"><a href="msx_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a></div><div class="ttdeci">void move_sprite(uint8_t nb, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> msx.h:776</div></div>
<div class="ttc" id="amsx_8h_html_ab472d9bbb1bcfd141374f5babc71934c"><div class="ttname"><a href="msx_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a></div><div class="ttdeci">uint8_t _submap_tile_offset</div></div>
<div class="ttc" id="amsx_8h_html_aba0308b5e8e154cc920f041a185ac770"><div class="ttname"><a href="msx_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a></div><div class="ttdeci">void set_tile_submap_compat(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t map_w, const uint8_t *map) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_aba4fa6f13f80e53daeb0caa7b1ec8afb"><div class="ttname"><a href="msx_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a></div><div class="ttdeci">void h</div><div class="ttdef"><b>Definition:</b> msx.h:238</div></div>
<div class="ttc" id="amsx_8h_html_aba932d128338fb19644842565139a20d"><div class="ttname"><a href="msx_8h.html#aba932d128338fb19644842565139a20d">fill_rect</a></div><div class="ttdeci">void fill_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint16_t tile) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_abb50a392ca0d0419a080413287ee5d79"><div class="ttname"><a href="msx_8h.html#abb50a392ca0d0419a080413287ee5d79">set_win_submap</a></div><div class="ttdeci">void set_win_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)</div><div class="ttdef"><b>Definition:</b> msx.h:630</div></div>
<div class="ttc" id="amsx_8h_html_abc8bc5808620a9717263b8c9ec2237f0"><div class="ttname"><a href="msx_8h.html#abc8bc5808620a9717263b8c9ec2237f0">set_bkg_based_submap</a></div><div class="ttdeci">void set_bkg_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> msx.h:635</div></div>
<div class="ttc" id="amsx_8h_html_abe90cc2b5bb10c0ed9e01e548ddf8862"><div class="ttname"><a href="msx_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">joypad_init</a></div><div class="ttdeci">uint8_t joypad_init(uint8_t npads, joypads_t *joypads) Z88DK_CALLEE</div></div>
<div class="ttc" id="amsx_8h_html_ac23dbe69b5ee241af2da4f77bb580fa5"><div class="ttname"><a href="msx_8h.html#ac23dbe69b5ee241af2da4f77bb580fa5">refresh_OAM</a></div><div class="ttdeci">void refresh_OAM(void)</div></div>
<div class="ttc" id="amsx_8h_html_ac4060da96eda27d24fec82f7be6007ab"><div class="ttname"><a href="msx_8h.html#ac4060da96eda27d24fec82f7be6007ab">waitpadup</a></div><div class="ttdeci">void waitpadup(void) PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_ac996706e2a5e73f010841437f26d4d4f"><div class="ttname"><a href="msx_8h.html#ac996706e2a5e73f010841437f26d4d4f">SWITCH_ROM</a></div><div class="ttdeci">void SWITCH_ROM(uint8_t bank) Z88DK_FASTCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_ad22c51635d052399bbbe1777999c794d"><div class="ttname"><a href="msx_8h.html#ad22c51635d052399bbbe1777999c794d">hide_sprite</a></div><div class="ttdeci">void hide_sprite(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> msx.h:802</div></div>
<div class="ttc" id="amsx_8h_html_adcb394299a1033616fc7d2faec8bd6ad"><div class="ttname"><a href="msx_8h.html#adcb394299a1033616fc7d2faec8bd6ad">set_1bpp_colors</a></div><div class="ttdeci">void set_1bpp_colors(uint8_t fgcolor, uint8_t bgcolor)</div><div class="ttdef"><b>Definition:</b> msx.h:589</div></div>
<div class="ttc" id="amsx_8h_html_ade1cd2eab862b0e479415288964b3d63"><div class="ttname"><a href="msx_8h.html#ade1cd2eab862b0e479415288964b3d63">cancel_pending_interrupts</a></div><div class="ttdeci">uint8_t cancel_pending_interrupts(void)</div><div class="ttdef"><b>Definition:</b> msx.h:213</div></div>
<div class="ttc" id="amsx_8h_html_ae3e53d15b4fc64f43761f55c1793b490"><div class="ttname"><a href="msx_8h.html#ae3e53d15b4fc64f43761f55c1793b490">disable_interrupts</a></div><div class="ttdeci">void disable_interrupts(void) PRESERVES_REGS(a</div></div>
<div class="ttc" id="amsx_8h_html_ae59628e2237f301df1341e22bfc8296e"><div class="ttname"><a href="msx_8h.html#ae59628e2237f301df1341e22bfc8296e">add_VBL</a></div><div class="ttdeci">void add_VBL(int_handler h) Z88DK_FASTCALL PRESERVES_REGS(d</div></div>
<div class="ttc" id="amsx_8h_html_aed37a51ad86371d20b2fda0affbac4ed"><div class="ttname"><a href="msx_8h.html#aed37a51ad86371d20b2fda0affbac4ed">set_native_tile_data</a></div><div class="ttdeci">void set_native_tile_data(uint16_t start, uint16_t ntiles, const void *src) Z88DK_CALLEE</div></div>
<div class="ttc" id="amsx_8h_html_aeda4515a31485c9688c4601ac5ce2d79"><div class="ttname"><a href="msx_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a></div><div class="ttdeci">void e</div><div class="ttdef"><b>Definition:</b> msx.h:102</div></div>
<div class="ttc" id="amsx_8h_html_aefda0091b2934571a11e07b512735f50"><div class="ttname"><a href="msx_8h.html#aefda0091b2934571a11e07b512735f50">set_interrupts</a></div><div class="ttdeci">void set_interrupts(uint8_t flags) Z88DK_FASTCALL</div></div>
<div class="ttc" id="amsx_8h_html_aeff13dca11be49e8c159820c616016ec"><div class="ttname"><a href="msx_8h.html#aeff13dca11be49e8c159820c616016ec">set_bkg_4bpp_data</a></div><div class="ttdeci">void set_bkg_4bpp_data(uint16_t start, uint16_t ntiles, const void *src)</div><div class="ttdef"><b>Definition:</b> msx.h:561</div></div>
<div class="ttc" id="amsx_8h_html_af279c752a3b15c4bd5c67f54b92e553f"><div class="ttname"><a href="msx_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a></div><div class="ttdeci">void iyl</div><div class="ttdef"><b>Definition:</b> msx.h:102</div></div>
<div class="ttc" id="amsx_8h_html_af288f3b302839006d33d38755d922de0"><div class="ttname"><a href="msx_8h.html#af288f3b302839006d33d38755d922de0">set_palette</a></div><div class="ttdeci">void set_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data) Z88DK_CALLEE</div></div>
<div class="ttc" id="amsx_8h_html_af57b77452ef377da18e4fbf0288013d1"><div class="ttname"><a href="msx_8h.html#af57b77452ef377da18e4fbf0288013d1">vsync</a></div><div class="ttdeci">void vsync(void) PRESERVES_REGS(b</div></div>
<div class="ttc" id="amsx_8h_html_af5c0beff7d7a7d8641b51fd95c811b2a"><div class="ttname"><a href="msx_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">get_sprite_tile</a></div><div class="ttdeci">uint8_t get_sprite_tile(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> msx.h:752</div></div>
<div class="ttc" id="amsx_8h_html_af79b920bcb642bba2e652874c4f7eeff"><div class="ttname"><a href="msx_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a></div><div class="ttdeci">void l</div><div class="ttdef"><b>Definition:</b> msx.h:238</div></div>
<div class="ttc" id="amsx_8h_html_afe1bc7117a68cd0939c2d03baaa06b89"><div class="ttname"><a href="msx_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">set_vram_byte</a></div><div class="ttdeci">void set_vram_byte(uint8_t *addr, uint8_t v) Z88DK_CALLEE PRESERVES_REGS(iyh</div></div>
<div class="ttc" id="amsx_8h_html_afe5714734a8fea7b1617ba377b3c0a06"><div class="ttname"><a href="msx_8h.html#afe5714734a8fea7b1617ba377b3c0a06">display_off</a></div><div class="ttdeci">void display_off(void)</div><div class="ttdef"><b>Definition:</b> msx.h:248</div></div>
<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
<div class="ttc" id="astdint_8h_html_a66634143db08bebe9b46ab4cb1fc6fd3"><div class="ttname"><a href="stdint_8h.html#a66634143db08bebe9b46ab4cb1fc6fd3">int16_t</a></div><div class="ttdeci">short int int16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:44</div></div>
<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
<div class="ttc" id="astdint_8h_html_adf4d876453337156dde61095e1f20223"><div class="ttname"><a href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
<div class="ttc" id="astdint_8h_html_aef44329758059c91c76d334e8fc09700"><div class="ttname"><a href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a></div><div class="ttdeci">signed char int8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:43</div></div>
<div class="ttc" id="astruct_o_a_m__item__t_html"><div class="ttname"><a href="struct_o_a_m__item__t.html">OAM_item_t</a></div><div class="ttdef"><b>Definition:</b> gb.h:1823</div></div>
<div class="ttc" id="astruct_o_a_m__item__t_html_a3a13fb7441f8c431d9494cd2441c6c0b"><div class="ttname"><a href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">OAM_item_t::x</a></div><div class="ttdeci">uint8_t x</div><div class="ttdef"><b>Definition:</b> gb.h:1824</div></div>
<div class="ttc" id="astruct_o_a_m__item__t_html_a435e018f3bbc0ebaa9eaf96806d386d9"><div class="ttname"><a href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">OAM_item_t::prop</a></div><div class="ttdeci">uint8_t prop</div><div class="ttdef"><b>Definition:</b> gb.h:1826</div></div>
<div class="ttc" id="astruct_o_a_m__item__t_html_a6c269ed01269d02bcf7e36e0de3696f6"><div class="ttname"><a href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">OAM_item_t::tile</a></div><div class="ttdeci">uint8_t tile</div><div class="ttdef"><b>Definition:</b> gb.h:1825</div></div>
<div class="ttc" id="astruct_o_a_m__item__t_html_ad5ad9d3d300858bf0b1cd9e210366a18"><div class="ttname"><a href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">OAM_item_t::y</a></div><div class="ttdeci">uint8_t y</div><div class="ttdef"><b>Definition:</b> gb.h:1824</div></div>
<div class="ttc" id="astructjoypads__t_html"><div class="ttname"><a href="structjoypads__t.html">joypads_t</a></div><div class="ttdef"><b>Definition:</b> gb.h:755</div></div>
<div class="ttc" id="aversion_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
